from django.db import models
from base_utils.models import BaseModel


# Create your models here.
class UserModel(BaseModel):
    account = models.CharField(
        max_length=32, verbose_name="账户名", db_index=True, unique=True
    )
    name = models.CharField(
        max_length=128, verbose_name="用户名", null=True, blank=True
    )
    password = models.CharField(max_length=256, verbose_name="密码")
    role_id = models.IntegerField(null=True, blank=True, verbose_name="角色id")

    class Meta:
        db_table = "user"
        verbose_name_plural = "用户表"
        verbose_name = "用户表"
